package com.media.common.ffmpeg;

import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@Getter
public enum FFmpegError {
    e1("refused"),
    e2("timedout"),
    ;

    private final static List<String> list = Arrays.stream(FFmpegError.values()).map(FFmpegError::getCode).collect(Collectors.toList());

    private String code;

    FFmpegError(String code) {
        this.code = code;
    }

    public static List<String> getErrors(){
        return list;
    }
}
